package com.ch.home.bean;

/**
 * 做菜游戏步骤
 * Created by CHEN on 2019/8/24.
 */
public class GameStep {

    private Integer id;//唯一标识
    private Integer stepId;
    private String stepName;//步骤名字
    private String stepContent;//步骤内容
    private Integer game_id;//游戏类别Id

    public GameStep() {
    }

    public GameStep(Integer id, Integer stepId, String stepName, String stepContent, Integer game_id) {

        this.id = id;
        this.stepId = stepId;
        this.stepName = stepName;
        this.stepContent = stepContent;
        this.game_id = game_id;
    }

    public Integer getId() {

        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getStepId() {
        return stepId;
    }

    public void setStepId(Integer stepId) {
        this.stepId = stepId;
    }

    public String getStepName() {
        return stepName;
    }

    public void setStepName(String stepName) {
        this.stepName = stepName;
    }

    public String getStepContent() {
        return stepContent;
    }

    public void setStepContent(String stepContent) {
        this.stepContent = stepContent;
    }

    public Integer getGame_id() {
        return game_id;
    }

    public void setGame_id(Integer game_id) {
        this.game_id = game_id;
    }

    @Override
    public boolean equals(Object o) {

        if (this == o) return true;
        if (o == null || getClass( ) != o.getClass( )) return false;

        GameStep gameStep = (GameStep) o;

        if (id != null ? !id.equals(gameStep.id) : gameStep.id != null) return false;
        if (stepId != null ? !stepId.equals(gameStep.stepId) : gameStep.stepId != null) return false;
        if (stepName != null ? !stepName.equals(gameStep.stepName) : gameStep.stepName != null) return false;
        if (stepContent != null ? !stepContent.equals(gameStep.stepContent) : gameStep.stepContent != null)
            return false;
        return game_id != null ? game_id.equals(gameStep.game_id) : gameStep.game_id == null;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode( ) : 0;
        result = 31 * result + (stepId != null ? stepId.hashCode( ) : 0);
        result = 31 * result + (stepName != null ? stepName.hashCode( ) : 0);
        result = 31 * result + (stepContent != null ? stepContent.hashCode( ) : 0);
        result = 31 * result + (game_id != null ? game_id.hashCode( ) : 0);
        return result;
    }

    @Override
    public String toString() {
        return "GameStep{" +
                "id=" + id +
                ", stepId=" + stepId +
                ", stepName='" + stepName + '\'' +
                ", stepContent='" + stepContent + '\'' +
                ", game_id=" + game_id +
                '}';
    }
}
